function testphonenum(){
    var pattern= /^1(3[0-9]|5[0-3,5-9]|7[1-3,5-8]|8[0-9])\d{8}$/;
    //console.log($("#phonenum").val())
    if(pattern.test($("#phonenum").val())) {
        console.log(true)
        return true;
    }else{
        alert("手机号格式错误");
        return false;
    }
}